package com.ruoyi.voit.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.voit.mapper.ChargingOrderMapper;
import com.ruoyi.voit.domain.ChargingOrder;
import com.ruoyi.voit.service.IChargingOrderService;

/**
 * 充电订单记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-17
 */
@Service
public class ChargingOrderServiceImpl implements IChargingOrderService 
{
    @Autowired
    private ChargingOrderMapper chargingOrderMapper;

    /**
     * 查询充电订单记录
     * 
     * @param orderId 充电订单记录主键
     * @return 充电订单记录
     */
    @Override
    public ChargingOrder selectChargingOrderByOrderId(String orderId)
    {
        return chargingOrderMapper.selectChargingOrderByOrderId(orderId);
    }

    /**
     * 查询充电订单记录列表
     * 
     * @param chargingOrder 充电订单记录
     * @return 充电订单记录
     */
    @Override
    public List<ChargingOrder> selectChargingOrderList(ChargingOrder chargingOrder)
    {
        return chargingOrderMapper.selectChargingOrderList(chargingOrder);
    }

    /**
     * 新增充电订单记录
     * 
     * @param chargingOrder 充电订单记录
     * @return 结果
     */
    @Override
    public int insertChargingOrder(ChargingOrder chargingOrder)
    {
        return chargingOrderMapper.insertChargingOrder(chargingOrder);
    }

    /**
     * 修改充电订单记录
     * 
     * @param chargingOrder 充电订单记录
     * @return 结果
     */
    @Override
    public int updateChargingOrder(ChargingOrder chargingOrder)
    {
        return chargingOrderMapper.updateChargingOrder(chargingOrder);
    }

    /**
     * 批量删除充电订单记录
     * 
     * @param orderIds 需要删除的充电订单记录主键
     * @return 结果
     */
    @Override
    public int deleteChargingOrderByOrderIds(String[] orderIds)
    {
        return chargingOrderMapper.deleteChargingOrderByOrderIds(orderIds);
    }

    /**
     * 删除充电订单记录信息
     * 
     * @param orderId 充电订单记录主键
     * @return 结果
     */
    @Override
    public int deleteChargingOrderByOrderId(String orderId)
    {
        return chargingOrderMapper.deleteChargingOrderByOrderId(orderId);
    }
}
